#ifndef __THREAD_POOL_H__
#define __THREAD_POOL_H__

typedef struct job {
    void (*job_function)(struct job *job);
    void *user_data;
    struct job *prev;
    struct job *next;
} job_t;

void threadpool_init(void);
void threadpool_fini(void);
void threadpool_add_job(job_t* job);

#endif
